package dominion;

public class Victory implements Value {

	public static final Victory CURSE = new Victory(-1, CardTypes.Curse);
	public static final Victory ESTATE = new Victory(1, CardTypes.Estate);
	public static final Victory DUCHY = new Victory(3, CardTypes.Duchy);
	public static final Victory PROVINCE = new Victory(6, CardTypes.Province);

	int value = 0;
	CardTypes type;

	protected Victory(int value, CardTypes type) {
		this.value = value;
		this.type = type;
	}

	@Override
	public int value() {
		return this.value;
	}

	@Override
	public CardTypes getType() {
		return this.type;
	}

	@Override
	public String toString() {
		return this.type.name();
	}
}